import requestMeeting from '@/plugins/axios'
import { LiveInfo } from './interface'

export const fetchLiveInfo = async (meetingMoid: string) =>
	requestMeeting<LiveInfo>({
		url: `/mcc/${meetingMoid}/live`,
		method: 'get',
	}).then((res) => (res.success && res.data ? res.data : undefined))
